package cn.iocoder.yudao.module.lowcode.controller.admin.generic.vo;

import cn.iocoder.yudao.framework.common.pojo.SortablePageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.util.Map;

@Schema(description = "低代码 - 通用表格分页查询请求 VO")
@Data
@EqualsAndHashCode(callSuper = true)
public class GenericTablePageReqVO extends SortablePageParam {

    @Schema(description = "数据源配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "0")
    @NotNull(message = "数据源配置ID不能为空")
    private Long dataSourceId;

    @Schema(description = "动态搜索参数", example = "{\"username\": \"admin\", \"status\": \"1\"}")
    private Map<String, Object> searchParams;

}